#include "../sq_stack/sq_stack.h"
#include <stdio.h>

static int count = 0;

void hanoi(int n, char x, char y, char z)
{
	if(n == 1){
		printf("move %d from %c to %c \n", 1, x, z);
		count ++;
	}else{
		hanoi(n - 1, x, z, y);
		printf("move %d from %c to %c \n", n, x, z);
		count ++;
		hanoi(n - 1, y, x, z);
	}
}

int main(){
	hanoi(10,'A','B','C');
	printf("Move count: %d\n", count);
}
